/*CodeBuilder v1.0.4 by 2021/12/3 13:50:11 */
using System;
using ASmile.ORM.Entitys;

namespace ASmile.DBModel
{
	public partial class Dict_CommonType : EntityBase
	{
		private System.Int16 _TypeNo;
		/// <summary>
		/// TypeNo
		/// </summary>
		[Entity(CNTypeNo, 0, true, IsPrimaryKey = true)]
		public System.Int16 TypeNo
		{
			get { return _TypeNo; }
			set
			{
				if (!OnPropertyChanged(CNTypeNo, _TypeNo, value)) return;
				_TypeNo = value;
				SetFieldChanged(CNTypeNo) ;
			}
		}

		private System.String _TypeName;
		/// <summary>
		/// TypeName
		/// </summary>
		[Entity(CNTypeName, 1, true)]
		public System.String TypeName
		{
			get { return _TypeName; }
			set
			{
				if (!OnPropertyChanged(CNTypeName, _TypeName, value)) return;
				_TypeName = value;
				SetFieldChanged(CNTypeName) ;
			}
		}

		private System.String _TypeCaption;
		/// <summary>
		/// TypeCaption
		/// </summary>
		[Entity(CNTypeCaption, 2, true)]
		public System.String TypeCaption
		{
			get { return _TypeCaption; }
			set
			{
				if (!OnPropertyChanged(CNTypeCaption, _TypeCaption, value)) return;
				_TypeCaption = value;
				SetFieldChanged(CNTypeCaption) ;
			}
		}

		private System.String _TypeCaptionCode;
		/// <summary>
		/// TypeCaptionCode
		/// </summary>
		[Entity(CNTypeCaptionCode, 3)]
		public System.String TypeCaptionCode
		{
			get { return _TypeCaptionCode; }
			set
			{
				if (!OnPropertyChanged(CNTypeCaptionCode, _TypeCaptionCode, value)) return;
				_TypeCaptionCode = value;
				SetFieldChanged(CNTypeCaptionCode) ;
			}
		}

		private System.Int32 _SortNo;
		/// <summary>
		/// SortNo
		/// </summary>
		[Entity(CNSortNo, 4, true)]
		public System.Int32 SortNo
		{
			get { return _SortNo; }
			set
			{
				if (!OnPropertyChanged(CNSortNo, _SortNo, value)) return;
				_SortNo = value;
				SetFieldChanged(CNSortNo) ;
			}
		}

		private System.String _Remark;
		/// <summary>
		/// Remark
		/// </summary>
		[Entity(CNRemark, 5)]
		public System.String Remark
		{
			get { return _Remark; }
			set
			{
				if (!OnPropertyChanged(CNRemark, _Remark, value)) return;
				_Remark = value;
				SetFieldChanged(CNRemark) ;
			}
		}

		private System.Boolean _IsUse;
		/// <summary>
		/// IsUse
		/// </summary>
		[Entity(CNIsUse, 6, true)]
		public System.Boolean IsUse
		{
			get { return _IsUse; }
			set
			{
				if (!OnPropertyChanged(CNIsUse, _IsUse, value)) return;
				_IsUse = value;
				SetFieldChanged(CNIsUse) ;
			}
		}

		#region 字段名的定义
		public const string CNTypeNo = "TypeNo";
		public const string CNTypeName = "TypeName";
		public const string CNTypeCaption = "TypeCaption";
		public const string CNTypeCaptionCode = "TypeCaptionCode";
		public const string CNSortNo = "SortNo";
		public const string CNRemark = "Remark";
		public const string CNIsUse = "IsUse";
		#endregion

	}
}
